package com.helloworld.demo;

public class DynamicLoadTest {

    static {
        System.out.println("com.helloworld.demo.DynamicLoadTest load");
    }

    public static void main(String[] args) {

        new A();
        System.out.println("test...");
        B b = new B();
    }

}

class A {

    static {
        System.out.println("com.helloworld.demo.A load");
    }

    public A(){
        System.out.println("com.helloworld.demo.A gouzao");
    }

}

class B {
    static {
        System.out.println("com.helloworld.demo.B load");
    }

    public B(){
        System.out.println("com.helloworld.demo.B gouzao");
    }
}
